﻿using System.Collections;
using CustomCollections;

CustomersList customersList = new CustomersList();

IEnumerator enumerator = customersList.GetEnumerator();

enumerator.MoveNext();
Console.WriteLine(enumerator.Current);

// Add
Customer newCustomer = new Customer()
{
    Id = "A111", Name = "Tom", Email = "Tom@gmail.com", CustomerType = TypeOfCustomer.RegularCustomer
};

customersList.Add(newCustomer);

foreach (Customer customer in customersList)
{
    Console.WriteLine(customer.Id + "," + customer.Name + "," + customer.Email+","+customer.CustomerType);
}

Console.ReadKey();